package com.hanfu.ucenter.web.dao;

import com.hanfu.ucenter.web.bean.Member;
import com.hanfu.ucenter.web.bean.Merchant;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

/**
 * @Author: yQJun
 * Description： 商户dao层
 * @Date：Created in 13:37  2019/9/20
 */
public interface MerchantMapper  extends Mapper<Merchant> {

    @Select("select ua_id from fa_union_application where ua_m_id = #{memberId} and  ua_shop_name=#{shopName}")
    Member findMerchant(@Param("memberId") Long memberId,@Param("shopName")String shopName);
}
